<template>
	<div id="vue-app">
		<router-view />
	</div>
</template>
<script>
export default {
	created(){
    const token = localStorage.getItem('token')
    if(!token){
      this.$router.push({path:'/login'})
    }
  }
}
</script>
<style scoped>
#vue-app{
  padding: 20px;
}
</style>